package com.qiaomengapp.bean;

import java.util.Calendar;
import java.util.Date;

import com.qiaomengapp.util.DateUtils;

public class EvaluateWarp {
	private String evaluateMsg;

	private String name;

	private String headImg;

	private Date createTime;

	private String createTimeStr;

	public String getEvaluateMsg() {
		return evaluateMsg;
	}

	public void setEvaluateMsg(String evaluateMsg) {
		this.evaluateMsg = evaluateMsg;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
		// 得到日期对应的小时
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(createTime);
		int hour = calendar.get(Calendar.HOUR_OF_DAY);
		// 得到小时对应的时段
		String duringDay = DateUtils.getDuringDay(hour);
		// 得到日期字符串
		this.setCreateTimeStr(DateUtils.formatDate(createTime, "yyyy-MM-dd") + " " + duringDay + " "
				+ DateUtils.formatDate(createTime, "HH:mm:dd"));
	}

	public String getCreateTimeStr() {
		return createTimeStr;
	}

	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}

	@Override
	public String toString() {
		return "EvaluateWarp [evaluateMsg=" + evaluateMsg + ", name=" + name + ", headImg=" + headImg + ", createTime="
				+ createTime + ", createTimeStr=" + createTimeStr + "]";
	}

}
